﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using IQKS.AWP.DataAccessLayer;
using IQKS.AWP.BusinessObject;

namespace IQKS.AWP.BusinessAccessLayer
{
    public class PayResponseBAL
    {
        public object SetPayResponse(PayResponseBO param)
        {
            try
            {
                return new PayResponseDAL().SetPayResponse(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetPayResponseOffline(PayResponseBO param)
        {
            try
            {
                return new PayResponseDAL().SetPayResponseOffline(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        //public object SetCandidatePaymentResponse(PayResponseBO param)
        //{
        //    try
        //    {
        //        return new PayResponseDAL().SetCandidatePaymentResponse(param);
        //    }
        //    catch (Exception ex)
        //    {
        //        throw new ApplicationException(ex.Message);
        //    }
        //}
        public DataSet GetPaymentforOffline(params object[] param)
        {
            DataSet objDs;


            try
            {
                objDs = new PayResponseDAL().GetPaymentforOffline(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }
    }
}
